using System;
using System.Collections.Generic;
using System.Text;
using DowncastSystems.WhereWolf;

namespace WhereWolf
{
    class TestProfileProvider : IProfileProvider
    {
        #region IProfileProvider Members

        public void DeleteProfile(Profile profile)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public ICollection<Profile> GetAllProfiles()
        {
            List<Profile> profiles = new List<Profile>();
            for (int i = 0; i<5; i++)
            {
                profiles.Add(new Profile("Profile" + i.ToString()));
            }
            return profiles.AsReadOnly();
        }

        public Profile GetProfileByName(string name)
        {
            Profile p = new Profile(name);
            for (int i = 0; i < 5; i++)
            {
                p.AddFile(String.Format(@"C:\{0}-{1}.file", name, i));
                p.AddFolder(String.Format(@"C:\{0}-{1}Folder", name, i));
            }
            return p;
        }

        public void SaveProfile(Profile profile)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion
    }
}
